# -*- encoding: utf-8 -*-
"""
@Project : textcnn_my
@FileName: send
@Time    : 2021/2/19 14:05
@Author  : chenych
@Desc    :
"""

import pika

con = pika.BlockingConnection(pika.ConnectionParameters('192.168.35.226'))
channel = con.channel()

channel.queue_declare(queue='hello')


channel.basic_publish(exchange='',
                      routing_key='hello',
                      body='Hello World!')
print("[x] Send 'Hello World!'")


con.close()
